<%@ taglib prefix="spring-tags" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="spring-form" uri="http://www.springframework.org/tags/form"%>
<%@ page
    import="org.jiscinvolve.astrodabis.mallow.model.api.Tag"
    import="org.jiscinvolve.astrodabis.mallow.model.api.Query"
    import="org.jiscinvolve.astrodabis.mallow.model.api.Result"
    import="org.jiscinvolve.astrodabis.mallow.model.api.Account"
    import="org.jiscinvolve.astrodabis.mallow.model.tap.TapService"
    import="org.jiscinvolve.astrodabis.mallow.control.ViewData"
    session="true"
%>
<%@ include file="/jsp/init.jsp" %>
<html>
    <head>
	    <title>AstroDAbis file import test</title>
        <link href='/astrodabis/css/page.css' rel='stylesheet' type='text/css'/>
    </head>
    <body>
        <%@ include file="/jsp/header.jsp" %>
        <div class='body'>
            <div class='left'>
                <%@ include file="/jsp/menu.jsp" %>
            </div>
            <div class='right'>
            </div>
            <div class='content'>
		        <h2>File import test</h2>
      			<spring-form:errors path="bean"/>
		        <spring-form:form method="post" modelAttribute="bean" enctype="multipart/form-data">
                    <fieldset>
                        <legend>Upload Fields</legend>
                        <div>
                            <spring-form:label for="name" path="name">Name</spring-form:label>
                            <br/>
                            <spring-form:input path="name"/>
                        </div>
                        <div>
                            <spring-form:label for="data" path="data">File</spring-form:label>
                            <br/>
                            <spring-form:input path="data" type="file"/>
                        </div>
                        <div>
                            <input type="submit" "Upload"/>
                        </div>
                    </fieldset>
                </spring-form:form>
            </div>
        </div>
        <%@ include file="/jsp/footer.jsp" %>
    </body>
</html>

